<%--
  Created by IntelliJ IDEA.
  User: hhx
  Date: 2025/1/6
  Time: 16:42
  To change this template use File | Settings | File Templates.
--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>登录</title>
    <link rel="stylesheet" href="./css/style.css"></link>
    <style>
        .txt:focus{
            outline: none;
            border:2px solid #65a0fa;
        }
    </style>
</head>
<body>
    <div class="main" style="margin-top: 200px;">
        <h1>登录</h1>
        <div class="add" style="width: 300px">
        <c:if test="${not empty param.error}">
            <p style="color:red">${param.error}</p>
        </c:if>
        <form  method="post" action="goodsServlet?method=login">
            <ul>
                <li>
                    账号:<input type="text" name="username" class="txt" value="admin" style="width:240px;" placeholder="请输入账号"><br>
                </li>
                <li>
                    密码:<input type="password" name="password" class="txt" value="123456" style="width:240px;" placeholder="请输入密码"><br>
                </li>
                <li style="text-align: center">
                    <button type="submit">登录</button>
                    <button type="reset">重置</button>
                </li>
            </ul>
        </form>
        </div>
    </div>
</body>
</html>
